<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>jquery基础</title>
    <style>
    </style>
    <script src="http://cdn.static.runoob.com/libs/jquery/1.10.2/jquery.min.js">
    </script>

</head>

<body>
    <script>

        // 文档加载完成写法二
        $(function () {
            // 开始写 jQuery 代码...
            $("button").click(function () {
                $.get("demo_test.php", function (data, status) {
                    alert("数据: " + data + "\n状态: " + status);
                });
            });

            $("button").click(function () {
                $.post("/try/ajax/demo_test_post.php",
                    {
                        name: "jquery",
                        url: "http://www.jquery.com"
                    },
                    function (data, status) {
                        alert("数据: \n" + data + "\n状态: " + status);
                    });
            });
        });


    </script>
    <div style="border: 1px solid green">

    </div>
    <button>load</button>

</body>

</html>